﻿@model NextInventory.Model.User.LoginModel

@*<script type="text/javascript">
    $(document).ready(function () {
        $("#PurchaseDateID").datepicker({
            changeMonth: true,
            changeYear: true
           // dateFormat: "dd.mm.yy"
        });
    });
</script>*@

<!--  start loginbox ................................................................................. -->
<div id="loginbox">

    <!--  start login-inner -->
    <div id="login-inner">
        @using (Html.BeginForm("Login", "User", FormMethod.Post))
        {
            @Html.ValidationSummary(true)
            <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <th>@Html.LabelFor(model => model.UserName)</th>
                    <td>
                        @Html.TextBoxFor(model => model.UserName, new { @class = "login-inp", @id = "PurchaseDateID" })
                        @Html.ValidationMessageFor(model => model.UserName)
                    </td>
                </tr>
                <tr>
                    <th>@Html.LabelFor(model => model.Password)</th>
                    <td>
                        @Html.PasswordFor(model => model.Password, new { @onfocus = "this.value=''", @class = "login-inp" })
                        @Html.ValidationMessageFor(model => model.Password)
                    </td>
                </tr>
                <tr>
                    <th></th>
                    <td valign="top">
                        @Html.CheckBoxFor(model => model.RememberMe, new { id = "login-check", @class = "checkbox-size" })
                        @Html.LabelFor(model => model.RememberMe, new { @for = "login-check" })
                    </td>
                </tr>
                <tr>
                    <th></th>
                    <td>
                        <input type="submit" class="submit-login" /></td>
                </tr>
            </table>
        }
    </div>
    <!--  end login-inner -->
    <div class="clear"></div>
    <a href="" class="forgot-pwd">Forgot Password?</a><br />
    <a href="" class="forgot-pwd">Register</a>
</div>
<!--  end loginbox -->
